﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPFClient.Codes
{
    /// <summary>
    /// 全局对象
    /// </summary>
    public static class GlobalObject
    {
        private static LanguageManager _currentLanguageManager;

        /// <summary>
        /// 当前语言管理器
        /// </summary>
        public static LanguageManager CurrentLanguageManager
        {
            get
            {
                if (_currentLanguageManager == null)
                {
                    _currentLanguageManager = new LanguageManager();
                }

                return _currentLanguageManager;
            }
            set
            {
                _currentLanguageManager = value;
            }
        }
    }
}
